﻿using System.Collections.Generic;

namespace RepositoryFramework.Validators
{
	/// <summary>
	/// Interface <see cref="IValidationResult"/> declare validation result
	/// </summary>
	public class ValidationResult : IValidationResult
	{
		/// <summary>
		/// Gets the errors.
		/// </summary>
		/// <value>
		/// The errors.
		/// </value>
		public IList<ValidationError> Errors { get; set; }

		/// <summary>
		/// Gets a value indicating whether result is valid.
		/// </summary>
		/// <value>
		///   <c>true</c> if result is valid; otherwise, <c>false</c>.
		/// </value>
		public bool IsValid { get; set; }
	}
}